import numpy as np
import io

element = "72 191 387 142 6 44 338 37 197 196 195 146 147 148 76 77 78 393 392 391 207 208 209 390 389 388 451 452 453 158 159 160 45 46 47 43 42 41 339 340 341 342 343 344 398 397 400 399 401 404 403 402 405 210 211 212 213 214 215 216 217 218 161 164 163 162 168 167 166 165 169 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 345 346 347 348 349 350 351 352 353 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498"

nodes = """
1 0 0 0
2 1 0 0
3 0 1 0
4 1 1 0
5 0 0 1
6 1 0 1
7 1 1 1
8 0 1 1
9 0.4999999999986938 0 0
10 0.124999999999778 0 0
11 0.2499999999994166 0 0
12 0.3749999999990552 0 0
13 0.6249999999990203 0 0
14 0.7499999999993469 0 0
15 0.8749999999996734 0 0
16 0.4999999999986938 1 0
17 0.124999999999778 1 0
18 0.2499999999994166 1 0
19 0.3749999999990552 1 0
20 0.6249999999990203 1 0
21 0.7499999999993469 1 0
22 0.8749999999996734 1 0
23 0 0.4999999999986938 0
24 0 0.124999999999778 0
25 0 0.2499999999994166 0
26 0 0.3749999999990552 0
27 0 0.6249999999990203 0
28 0 0.7499999999993469 0
29 0 0.8749999999996734 0
30 1 0.4999999999986938 0
31 1 0.124999999999778 0
32 1 0.2499999999994166 0
33 1 0.3749999999990552 0
34 1 0.6249999999990203 0
35 1 0.7499999999993469 0
36 1 0.8749999999996734 0
37 0.4999999999986938 0 1
38 0.124999999999778 0 1
39 0.2499999999994166 0 1
40 0.3749999999990552 0 1
41 0.6249999999990203 0 1
42 0.7499999999993469 0 1
43 0.8749999999996734 0 1
44 1 0.4999999999986938 1
45 1 0.124999999999778 1
46 1 0.2499999999994166 1
47 1 0.3749999999990552 1
48 1 0.6249999999990203 1
49 1 0.7499999999993469 1
50 1 0.8749999999996734 1
51 0.5000000000020601 1 1
52 0.8750000000001986 1 1
53 0.7500000000007291 1 1
54 0.6250000000013878 1 1
55 0.3750000000015452 1 1
56 0.2500000000010302 1 1
57 0.1250000000005151 1 1
58 0 0.5000000000020601 1
59 0 0.8750000000001986 1
60 0 0.7500000000007291 1
61 0 0.6250000000013878 1
62 0 0.3750000000015452 1
63 0 0.2500000000010302 1
64 0 0.1250000000005151 1
65 0 0 0.4999999999986938
66 0 0 0.124999999999778
67 0 0 0.2499999999994166
68 0 0 0.3749999999990552
69 0 0 0.6249999999990203
70 0 0 0.7499999999993469
71 0 0 0.8749999999996734
72 1 0 0.4999999999986938
73 1 0 0.124999999999778
74 1 0 0.2499999999994166
75 1 0 0.3749999999990552
76 1 0 0.6249999999990203
77 1 0 0.7499999999993469
78 1 0 0.8749999999996734
79 1 1 0.4999999999986938
80 1 1 0.124999999999778
81 1 1 0.2499999999994166
82 1 1 0.3749999999990552
83 1 1 0.6249999999990203
84 1 1 0.7499999999993469
85 1 1 0.8749999999996734
86 0 1 0.4999999999986938
87 0 1 0.124999999999778
88 0 1 0.2499999999994166
89 0 1 0.3749999999990552
90 0 1 0.6249999999990203
91 0 1 0.7499999999993469
92 0 1 0.8749999999996734
93 0.499999998874093 0.500000001125907 0
94 0.8749999997185233 0.5000000002804972 0
95 0.7499999994370465 0.5000000005623004 0
96 0.6249999991555698 0.5000000008441037 0
97 0.4999999991552432 0.3750000008444303 0
98 0.4999999994363934 0.2500000005629535 0
99 0.4999999997175436 0.1250000002814767 0
100 0.6249999997881583 0.1250000002110518 0
101 0.8749999999293866 0.1250000000702025 0
102 0.8749999997888104 0.3750000002103984 0
103 0.6249999993664328 0.375000000633086 0
104 0.7499999998587721 0.1250000001406271 0
105 0.8749999998590984 0.2500000001403005 0
106 0.7499999995776221 0.3750000004217424 0
107 0.6249999995772957 0.2500000004220689 0
108 0.7499999997181972 0.2500000002811847 0
109 0.3749999991555698 0.5000000008441037 0
110 0.2499999994370465 0.5000000005623004 0
111 0.1249999997185233 0.5000000002804972 0
112 0.1249999997888367 0.3750000002103984 0
113 0.1249999999294641 0.1250000000702019 0
114 0.3749999997881833 0.1250000002110512 0
115 0.3749999993664407 0.3750000006330858 0
116 0.1249999998591504 0.2500000001403002 0
117 0.2499999998588238 0.1250000001406266 0
118 0.3749999995773122 0.2500000004220685 0
119 0.2499999995776387 0.3750000004217422 0
120 0.2499999997182313 0.2500000002811844 0
121 0.4999999991552432 0.6250000008444303 0
122 0.4999999994363934 0.7500000005629535 0
123 0.4999999997175436 0.8750000002814767 0
124 0.6249999997881583 0.8750000002110261 0
125 0.8749999999293866 0.8750000000701244 0
126 0.8749999997888104 0.6250000002103722 0
127 0.6249999993664328 0.6250000006330778 0
128 0.7499999998587721 0.8750000001405749 0
129 0.8749999998590984 0.7500000001402483 0
130 0.7499999995776221 0.6250000004217252 0
131 0.6249999995772957 0.7500000004220519 0
132 0.7499999997181972 0.7500000002811502 0
133 0.3749999997881832 0.8750000002110261 0
134 0.1249999999294635 0.8750000000701244 0
135 0.1249999997888361 0.6250000002103722 0
136 0.3749999993664406 0.6250000006330778 0
137 0.2499999998588234 0.8750000001405749 0
138 0.1249999998591499 0.7500000001402483 0
139 0.2499999995776384 0.6250000004217252 0
140 0.3749999995773119 0.7500000004220519 0
141 0.2499999997182309 0.7500000002811502 0
142 0.499999998874093 0 0.500000001125907
143 0.4999999991552432 0 0.3750000008444303
144 0.4999999994363934 0 0.2500000005629535
145 0.4999999997175436 0 0.1250000002814767
146 0.8749999997185233 0 0.5000000002804972
147 0.7499999994370465 0 0.5000000005623004
148 0.6249999991555698 0 0.5000000008441037
149 0.6249999993664321 0 0.3750000006330859
150 0.6249999997881575 0 0.1250000002110513
151 0.874999999929385 0 0.1250000000702018
152 0.87499999978881 0 0.3750000002103984
153 0.6249999995772946 0 0.2500000004220685
154 0.749999999858771 0 0.1250000001406266
155 0.8749999998590977 0 0.2500000001403003
156 0.7499999995776214 0 0.3750000004217422
157 0.7499999997181963 0 0.2500000002811844
158 0.4999999991552432 0 0.6250000008444303
159 0.4999999994363934 0 0.7500000005629535
160 0.4999999997175436 0 0.8750000002814767
161 0.87499999978881 0 0.6250000002103727
162 0.6249999993664316 0 0.6250000006330776
163 0.6249999997881563 0 0.8750000002110248
164 0.8749999999293853 0 0.8750000000701237
165 0.7499999995776208 0 0.6250000004217251
166 0.6249999995772939 0 0.7500000004220511
167 0.7499999998587709 0 0.8750000001405743
168 0.8749999998590977 0 0.7500000001402483
169 0.7499999997181959 0 0.7500000002811498
170 0.1249999997185233 0 0.5000000002804972
171 0.2499999994370465 0 0.5000000005623004
172 0.3749999991555698 0 0.5000000008441037
173 0.1249999997888375 0 0.3750000002103993
174 0.3749999993664418 0 0.3750000006330866
175 0.374999999788184 0 0.125000000211052
176 0.1249999999294649 0 0.125000000070203
177 0.2499999995776395 0 0.3750000004217429
178 0.3749999995773129 0 0.2500000004220693
179 0.2499999998588245 0 0.1250000001406275
180 0.1249999998591512 0 0.2500000001403011
181 0.2499999997182321 0 0.2500000002811852
182 0.1249999999294641 0 0.8750000000701235
183 0.1249999997888368 0 0.6250000002103722
184 0.3749999993664406 0 0.6250000006330765
185 0.3749999997881835 0 0.8750000002110253
186 0.1249999998591503 0 0.7500000001402476
187 0.2499999995776387 0 0.6250000004217243
188 0.3749999995773122 0 0.7500000004220508
189 0.2499999998588238 0 0.8750000001405743
190 0.2499999997182312 0 0.7500000002811493
191 1 0.5000000025136858 0.5000000025136859
192 1 0.5000000006274419 0.1250000006284215
193 1 0.5000000012561898 0.250000001256843
194 1 0.5000000018849378 0.3750000018852644
195 1 0.3750000018852644 0.5000000018849379
196 1 0.2500000012568429 0.5000000012561898
197 1 0.1250000006284214 0.5000000006274419
198 1 0.1250000004712603 0.3750000004706069
199 1 0.1250000001569387 0.1250000001569381
200 1 0.3750000004706069 0.1250000004712598
201 1 0.3750000014137116 0.3750000014137115
202 1 0.1250000003140995 0.2500000003137725
203 1 0.2500000003137729 0.125000000314099
204 1 0.3750000009421595 0.2500000009424857
205 1 0.250000000942486 0.3750000009421592
206 1 0.2500000006281294 0.2500000006281291
207 1 0.5000000018849378 0.6250000018852644
208 1 0.5000000012561898 0.750000001256843
209 1 0.5000000006274419 0.8750000006284215
210 1 0.1250000004712611 0.6250000004705811
211 1 0.3750000014137127 0.6250000014137033
212 1 0.3750000004706078 0.8750000004712335
213 1 0.1250000001569394 0.8750000001568599
214 1 0.2500000009424868 0.6250000009421419
215 1 0.3750000009421603 0.7500000009424683
216 1 0.2500000003137737 0.8750000003140468
217 1 0.1250000003141002 0.7500000003137206
218 1 0.2500000006281303 0.7500000006280944
219 1 0.6250000018852644 0.5000000018849379
220 1 0.7500000012568429 0.5000000012561898
221 1 0.8750000006284214 0.5000000006274419
222 1 0.8750000004712346 0.3750000004706069
223 1 0.8750000001568605 0.1250000001569381
224 1 0.6250000004705807 0.1250000004712598
225 1 0.6250000014137034 0.3750000014137115
226 1 0.8750000003140472 0.2500000003137726
227 1 0.7500000003137206 0.125000000314099
228 1 0.6250000009421423 0.2500000009424857
229 1 0.750000000942469 0.3750000009421592
230 1 0.7500000006280949 0.2500000006281291
231 1 0.8750000001568606 0.8750000001568596
232 1 0.8750000004712345 0.6250000004705807
233 1 0.6250000014137027 0.625000001413702
234 1 0.6250000004705816 0.8750000004712338
235 1 0.8750000003140473 0.7500000003137199
236 1 0.7500000009424685 0.6250000009421413
237 1 0.6250000009421423 0.750000000942468
238 1 0.750000000313721 0.8750000003140468
239 1 0.7500000006280949 0.7500000006280941
240 0.3943375672963764 1 0.3943375672963763
241 0.5457531754722823 1 0.4207531754719557
242 0.6971687836481881 1 0.447168783647535
243 0.8485843918240941 1 0.4735843918231144
244 0.4735843918231144 1 0.09858439182409406
245 0.4471687836475351 1 0.1971687836481881
246 0.4207531754719558 1 0.2957531754722822
247 0.5655648816039676 1 0.3155648816039757
248 0.8551882938679898 1 0.3551882938673622
249 0.8683960979557794 1 0.118396097955857
250 0.6051882938673364 1 0.1051882938680154
251 0.7103765877359787 1 0.3353765877356688
252 0.8617921959118846 1 0.2367921959116096
253 0.736792195911558 1 0.1117921959119362
254 0.5853765877356519 1 0.2103765877359955
255 0.7235843918237682 1 0.2235843918238026
256 0.4207531754727973 1 0.5457531754722822
257 0.4471687836492182 1 0.6971687836481881
258 0.4735843918256392 1 0.8485843918240941
259 0.8683960979561727 1 0.8683960979557778
260 0.8551882938681203 1 0.6051882938673351
261 0.5655648816045593 1 0.5655648816039655
262 0.6051882938691119 1 0.8551882938679883
263 0.8617921959121465 1 0.7367921959115562
264 0.7103765877363237 1 0.5853765877356503
265 0.5853765877368353 1 0.7103765877359769
266 0.736792195912594 1 0.8617921959118831
267 0.7235843918244589 1 0.7235843918237668
268 0.2957531754722823 1 0.4207531754719557
269 0.1971687836481881 1 0.447168783647535
270 0.09858439182409406 1 0.4735843918231144
271 0.3551882938692296 1 0.8551882938679881
272 0.3155648816045981 1 0.5655648816039659
273 0.1051882938682003 1 0.6051882938673343
274 0.1183960979564103 1 0.868396097955778
275 0.3353765877369141 1 0.7103765877359769
276 0.2103765877363992 1 0.5853765877356503
277 0.1117921959123052 1 0.7367921959115562
278 0.2367921959128199 1 0.8617921959118831
279 0.2235843918246095 1 0.7235843918237668
280 0.3551882938673615 1 0.1051882938680149
281 0.1183960979558564 1 0.1183960979558569
282 0.1051882938680154 1 0.3551882938673614
283 0.3155648816039751 1 0.3155648816039752
284 0.2367921959116093 1 0.1117921959119359
285 0.1117921959119359 1 0.2367921959116093
286 0.210376587735995 1 0.3353765877356684
287 0.3353765877356683 1 0.210376587735995
288 0.2235843918238021 1 0.2235843918238022
289 0 0.6056624327015634 0.3943375672984366
290 0 0.579246824525846 0.2957531754738275
291 0 0.5528312163501286 0.1971687836492183
292 0 0.5264156081744112 0.09858439182460915
293 0 0.1514156081753908 0.4735843918236295
294 0 0.3028312163507817 0.4471687836485652
295 0 0.4542468245261726 0.4207531754735009
296 0 0.4344351183943934 0.3155648816051338
297 0 0.3948117061308349 0.1051882938684007
298 0 0.1316039020436821 0.118396097955985
299 0 0.1448117061314881 0.3551882938677476
300 0 0.4146234122626143 0.2103765877367672
301 0 0.2632078040872585 0.1117921959121929
302 0 0.1382078040875848 0.2367921959118665
303 0 0.2896234122629409 0.3353765877364407
304 0 0.2764156081750995 0.2235843918243169
305 0 0.5792468245266875 0.5457531754738274
306 0 0.5528312163518118 0.6971687836492183
307 0 0.526415608176936 0.8485843918246092
308 0 0.131603902044234 0.8683960979559066
309 0 0.1448117061316717 0.6051882938677213
310 0 0.4344351183950163 0.5655648816051242
311 0 0.3948117061327019 0.8551882938683747
312 0 0.1382078040879531 0.7367921959118139
313 0 0.2896234122633441 0.5853765877364228
314 0 0.4146234122638589 0.7103765877367495
315 0 0.2632078040884678 0.8617921959121406
316 0 0.2764156081759059 0.7235843918242818
317 0 0.9014156081753908 0.4735843918236295
318 0 0.8028312163507817 0.4471687836485652
319 0 0.7042468245261726 0.4207531754735009
320 0 0.6448117061325844 0.8551882938683755
321 0 0.8816039020439973 0.8683960979559074
322 0 0.8948117061315936 0.6051882938677215
323 0 0.6844351183949768 0.5655648816051259
324 0 0.7632078040882428 0.8617921959121413
325 0 0.8882078040877954 0.7367921959118144
326 0 0.789623412263269 0.5853765877364239
327 0 0.6646234122637806 0.7103765877367507
328 0 0.7764156081757559 0.7235843918242828
329 0 0.8816039020436022 0.1183960979559855
330 0 0.6448117061308078 0.1051882938684011
331 0 0.6844351183943842 0.3155648816051339
332 0 0.8948117061314609 0.3551882938677479
333 0 0.7632078040872051 0.1117921959121933
334 0 0.664623412262596 0.2103765877367675
335 0 0.7896234122629225 0.335376587736441
336 0 0.8882078040875316 0.2367921959118667
337 0 0.7764156081750637 0.2235843918243172
338 0.5000000002611179 0.4999999997388821 1
339 0.8750000000652794 0.4999999999337409 1
340 0.7500000001305589 0.499999999868788 1
341 0.6250000001958385 0.499999999803835 1
342 0.5000000001955118 0.3749999998041615 1
343 0.5000000001299059 0.249999999869441 1
344 0.5000000000642999 0.1249999999347206 1
345 0.8750000000160754 0.1249999999835142 1
346 0.875000000048878 0.3749999999503324 1
347 0.6250000001466334 0.3749999998528852 1
348 0.6250000000482252 0.1249999999509854 1
349 0.8750000000324762 0.2499999999669232 1
350 0.7500000000977556 0.3749999999016088 1
351 0.6250000000974291 0.2499999999019355 1
352 0.7500000000321503 0.1249999999672498 1
353 0.7500000000649529 0.2499999999344293 1
354 0.3750000001958385 0.4999999998046766 1
355 0.250000000130559 0.4999999998704712 1
356 0.1250000000652794 0.4999999999362656 1
357 0.125000000016154 0.1249999999840663 1
358 0.3750000000482518 0.124999999951169 1
359 0.3750000001466429 0.374999999853507 1
360 0.1250000000489046 0.374999999952199 1
361 0.2500000000322027 0.1249999999676176 1
362 0.3750000000974473 0.249999999902338 1
363 0.2500000000977738 0.374999999902853 1
364 0.1250000000325292 0.2499999999681326 1
365 0.2500000000649883 0.2499999999352354 1
366 0.5000000001963535 0.6249999998041615 1
367 0.500000000131589 0.7499999998694411 1
368 0.5000000000668245 0.8749999999347206 1
369 0.875000000016469 0.8749999999834345 1
370 0.8750000000490094 0.6249999999503049 1
371 0.6250000001472252 0.6249999998528748 1
372 0.6250000000500004 0.8749999999509582 1
373 0.8750000000327389 0.7499999999668695 1
374 0.7500000000981012 0.6249999999015898 1
375 0.625000000098613 0.7499999999019166 1
376 0.7500000000331868 0.8749999999671962 1
377 0.7500000000656439 0.7499999999343931 1
378 0.3750000001472645 0.6249999998534679 1
379 0.1250000000490876 0.6249999999520811 1
380 0.1250000000167054 0.8749999999838282 1
381 0.3750000000501178 0.8749999999510895 1
382 0.250000000098176 0.6249999999027742 1
383 0.1250000000328966 0.7499999999679064 1
384 0.2500000000334118 0.8749999999674589 1
385 0.3750000000986912 0.7499999999022626 1
386 0.2500000000657939 0.7499999999350848 1
387 0.499999998874093 0.500000001125907 0.4999999999998944
388 0.499999998874093 0.1250000002814768 0.5000000008444039
389 0.499999998874093 0.2500000005629535 0.5000000005629007
390 0.499999998874093 0.3750000008444303 0.5000000002813976
391 0.6249999991555697 0.5000000014728517 0.5000000006283423
392 0.7499999994370465 0.5000000018197964 0.5000000012567901
393 0.8749999997185233 0.5000000021667411 0.5000000018852381
394 0.499999998874093 0.500000001125907 0.3749999999999208
395 0.499999998874093 0.500000001125907 0.2499999999999472
396 0.499999998874093 0.500000001125907 0.1249999999999736
397 0.6249999991555697 0.1250000003682129 0.5000000007901634
398 0.8749999997185233 0.1250000005416853 0.5000000006816824
399 0.8749999997185233 0.3750000016250559 0.5000000014840529
400 0.6249999991555697 0.3750000011046388 0.5000000006822827
401 0.7499999994370464 0.1250000004549491 0.5000000007359229
402 0.8749999997185233 0.2500000010833706 0.5000000010828676
403 0.7499999994370465 0.3750000013648473 0.5000000010831677
404 0.6249999991555697 0.2500000007364259 0.500000000736223
405 0.7499999994370465 0.2500000009098982 0.5000000009095453
406 0.4999999990849556 0.1250000002814768 0.3750000006333029
407 0.4999999989443805 0.3750000008444303 0.3750000002110482
408 0.4999999990849557 0.3750000008444303 0.1250000000703494
409 0.4999999995066809 0.1250000002814768 0.125000000211101
410 0.4999999990146681 0.2500000005629535 0.3750000004221755
411 0.4999999990146681 0.3750000008444303 0.2500000001406988
412 0.4999999992958183 0.2500000005629535 0.1250000001407252
413 0.4999999992958183 0.1250000002814768 0.2500000004222019
414 0.4999999991552432 0.2500000005629535 0.2500000002814504
415 0.6249999991555697 0.5000000013156647 0.3750000004712567
416 0.8749999997185233 0.5000000016951801 0.3750000014139285
417 0.8749999997185233 0.5000000007520581 0.1250000004713095
418 0.6249999991555697 0.5000000010012907 0.1250000001570856
419 0.7499999994370464 0.5000000015054225 0.3750000009425926
420 0.8749999997185233 0.5000000012236191 0.250000000942619
421 0.7499999994370465 0.5000000008766744 0.1250000003141975
422 0.6249999991555697 0.5000000011584778 0.2500000003141711
423 0.7499999994370465 0.5000000011910484 0.2500000006283951
424 0.6249999993137308 0.1250000003289326 0.3750000005926322
425 0.8749999997712471 0.1250000004238157 0.3750000005112815
426 0.8749999998766644 0.1250000001880734 0.1250000001704734
427 0.6249999996300275 0.1250000002503553 0.125000000197568
428 0.6249999992082922 0.375000000986755 0.3750000005117155
429 0.8749999997361178 0.375000001271394 0.3750000011130505
430 0.8749999997712339 0.3750000005640707 0.1250000003710316
431 0.6249999993137062 0.3750000007509804 0.1250000001705768
432 0.7499999995424935 0.1250000003763763 0.3750000005519594
433 0.6249999994718725 0.1250000002896434 0.2500000003950982
434 0.6249999992610163 0.2500000006578457 0.375000000552175
435 0.8749999998239582 0.1250000003059454 0.250000000340879
436 0.8749999997536918 0.2500000008476077 0.3750000008121686
437 0.7499999997533525 0.1250000002192199 0.1250000001840248
438 0.8749999998239592 0.2500000003760758 0.1250000002707549
439 0.6249999994718716 0.2500000005006723 0.1250000001840764
440 0.7499999994722067 0.3750000011290756 0.3750000008123838
441 0.6249999992609914 0.3750000008688647 0.2500000003411424
442 0.8749999997536816 0.3750000009177321 0.2500000007420408
443 0.7499999995424647 0.3750000006575266 0.1250000002708
444 0.7499999996479201 0.125000000297798 0.2500000003679916
445 0.7499999995073583 0.2500000007527278 0.3750000006821752
446 0.6249999993664361 0.2500000005792576 0.2500000003681237
447 0.8749999997888229 0.2500000006118416 0.2500000005414613
448 0.7499999996479192 0.2500000004383763 0.1250000002274181
449 0.7499999995073339 0.3750000008932995 0.2500000005415889
450 0.7499999995776333 0.2500000005955513 0.2500000004547944
451 0.4999999992208493 0.5000000007791509 0.6249999999999207
452 0.4999999995676054 0.5000000004323946 0.7499999999999472
453 0.4999999999143617 0.5000000000856383 0.8749999999999736
454 0.8749999998052123 0.5000000016084911 0.6250000014139285
455 0.624999999415637 0.5000000010555976 0.6250000004712567
456 0.6249999999357713 0.5000000002210891 0.8750000001570856
457 0.8749999999785905 0.5000000004919909 0.8750000004713095
458 0.7499999996104246 0.5000000013320444 0.6250000009425927
459 0.6249999996757041 0.5000000006383434 0.7500000003141711
460 0.7499999999571809 0.50000000035654 0.8750000003141976
461 0.8749999998919014 0.500000001050241 0.7500000009426191
462 0.7499999997838027 0.5000000008442922 0.7500000006283951
463 0.4999999992044477 0.3750000005843631 0.6250000002110482
464 0.4999999991716447 0.1250000001947877 0.625000000633303
465 0.4999999997667481 0.1250000000214096 0.8750000002111009
466 0.4999999998651572 0.3750000000642287 0.8750000000703494
467 0.4999999991880462 0.2500000003895754 0.6250000004221755
468 0.4999999994691964 0.1250000001080986 0.7500000004222019
469 0.4999999998159527 0.2500000000428191 0.8750000001407252
470 0.4999999995348025 0.3750000003242959 0.7500000001406988
471 0.4999999995019995 0.2500000002161973 0.7500000002814504
472 0.8749999997929233 0.1250000004021479 0.6250000005112808
473 0.8749999998011183 0.3750000012063794 0.6250000011130464
474 0.6249999994033272 0.3750000007916983 0.6250000005117089
475 0.6249999993787542 0.1250000002639102 0.6250000005926483
476 0.8749999999416932 0.12500000012306 0.8750000001704286
477 0.8749999999663061 0.3750000003690245 0.8750000003710272
478 0.6249999998988636 0.3750000001658217 0.8750000001705759
479 0.6249999998250568 0.1250000000552856 0.8750000001975418
480 0.8749999997970254 0.2500000008042647 0.6250000008121679
481 0.749999999585833 0.1250000003330269 0.6250000005519594
482 0.8749999998673121 0.1250000002626061 0.750000000340859
483 0.7499999996022247 0.3750000009990393 0.6250000008123792
484 0.8749999998837211 0.3750000007877042 0.750000000742047
485 0.6249999993910498 0.2500000005278059 0.6250000005521897
486 0.6249999996511059 0.3750000004787618 0.7500000003411533
487 0.6249999996019113 0.1250000001596002 0.7500000003951004
488 0.8749999999540006 0.2500000002460432 0.8750000002707303
489 0.7499999998833661 0.1250000000891698 0.8750000001839766
490 0.749999999932589 0.3750000002674255 0.8750000002708052
491 0.6249999998619524 0.250000000110552 0.8750000001840567
492 0.7499999995940344 0.2500000006660346 0.6250000006821768
493 0.8749999998755233 0.2500000005251561 0.7500000005414567
494 0.7499999997346043 0.125000000211101 0.7500000003679745
495 0.7499999997674098 0.3750000006332341 0.7500000005415969
496 0.6249999996265153 0.2500000003191813 0.750000000368134
497 0.7499999999079705 0.2500000001782982 0.875000000227389
498 0.7499999997510109 0.2500000004221687 0.7500000004547891
499 0.1249999997185233 0.5792468248076493 0.420753175473801
500 0.2499999994370465 0.5528312169137353 0.4471687836491655
501 0.3749999991555698 0.5264156090198211 0.4735843918245299
502 0.1249999997185233 0.434435118605737 0.4405648816754751
503 0.1249999997185233 0.1448117062019123 0.4801882940788231
504 0.3749999991555698 0.1316039022549553 0.4933960985892103
505 0.3749999991555698 0.3948117067648659 0.4801882940794234
506 0.1249999997185233 0.2896234124038247 0.460376587877149
507 0.2499999994370465 0.1382078042284338 0.4867921963340167
508 0.3749999991555698 0.2632078045099105 0.4867921963343168
509 0.2499999994370465 0.4146234126853015 0.4603765878774492
510 0.2499999994370465 0.2764156084568676 0.4735843921057329
511 0.1249999997185233 0.5594351186758613 0.3155648816053508
512 0.3749999991555698 0.5198117069758919 0.3551882938683975
513 0.3749999991555698 0.5066039028880331 0.1183960979561325
514 0.1249999997185233 0.5198117064122851 0.1051882938684503
515 0.2499999994370465 0.5396234128258766 0.3353765877368741
516 0.3749999991555698 0.5132078049319624 0.236792195912265
517 0.2499999994370465 0.5132078046501591 0.1117921959122914
518 0.1249999997185233 0.5396234125440732 0.2103765877369005
519 0.2499999994370465 0.5264156087380178 0.2235843918245827
520 0.1249999997361066 0.4195763390069061 0.3304236612566116
521 0.3749999992082915 0.3898587802319221 0.3601412205595738
522 0.3749999993137214 0.1299529267439741 0.3700470739419112
523 0.1249999997712628 0.1398587796689935 0.3601412205591361
524 0.1249999997712611 0.3898587798092351 0.1101412204188884
525 0.374999999313734 0.3799529271660355 0.1200470735198712
526 0.3749999996300281 0.1266509757220266 0.1233490246473116
527 0.1249999998767224 0.1299529266031298 0.1200470735197548
528 0.2499999994722002 0.4047175596194167 0.345282440908093
529 0.1249999997536827 0.2797175593379478 0.3452824409078702
530 0.1249999997536861 0.4047175594080718 0.2202824408377507
531 0.3749999992610069 0.2599058534879497 0.3650941472507425
532 0.3749999992610151 0.3849058536989817 0.2400941470397263
533 0.2499999995424936 0.1349058532064879 0.3650941472505233
534 0.3749999994718767 0.1283019512330027 0.246698049294615
535 0.1249999998239949 0.1349058531360653 0.240094147039443
536 0.2499999995424988 0.3849058534876362 0.1150941469693791
537 0.1249999998239888 0.2599058532061784 0.1150941469693198
538 0.3749999994718836 0.2533019514440306 0.1216980490835956
539 0.2499999997533738 0.1283019511625738 0.1216980490835288
540 0.2499999995073462 0.2698117064129519 0.3551882940793059
541 0.2499999995073517 0.3948117065535303 0.2301882939387398
542 0.1249999997888383 0.269811706272066 0.2301882939385931
543 0.3749999993664467 0.2566039024659912 0.2433960981671682
544 0.2499999996479361 0.1316039021845369 0.2433960981670306
545 0.2499999996479365 0.2566039023251014 0.1183960980264532
546 0.2499999995776437 0.2632078043690307 0.2367921960528808
547 0.4207531751908056 0.8750000002814767 0.4207531754722558
548 0.4471687830852347 0.7500000005629535 0.4471687836481353
549 0.4735843909796639 0.6250000008444303 0.4735843918240148
550 0.44056488132249 0.8750000002814767 0.3155648816041918
551 0.4801882935858591 0.8750000002814767 0.1051882938680639
552 0.4933960971113484 0.6250000008444303 0.1183960979560037
553 0.4801882930235587 0.6250000008444303 0.3551882938680112
554 0.4603765874541746 0.8750000002814768 0.2103765877361279
555 0.4867921953486037 0.7500000005629536 0.1117921959120338
556 0.4867921950674535 0.6250000008444303 0.2367921959120074
557 0.4603765871730244 0.7500000005629536 0.3353765877361015
558 0.4735843912608141 0.7500000005629535 0.2235843918240676
559 0.5655648813931041 0.8750000003682129 0.4405648817610523
560 0.6051882932347479 0.6250000011046388 0.4801882943392456
561 0.868396097744916 0.6250000016250559 0.4933960993697071
562 0.8551882937977013 0.8750000005416853 0.4801882943386453
563 0.5853765873139261 0.7500000007364259 0.460376588050149
564 0.736792195489832 0.6250000013648473 0.4867921968544764
565 0.8617921957713086 0.7500000010833705 0.4867921968541762
566 0.7103765875954028 0.8750000004549491 0.4603765880498488
567 0.7235843915426173 0.7500000009098982 0.4735843924521626
568 0.5804236609918825 0.8750000003289237 0.3304236613207999
569 0.6101412201894046 0.8750000002503315 0.1101412204402843
570 0.8700470733964648 0.8750000001880077 0.1200470735847191
571 0.8601412203306407 0.8750000004238078 0.360141220754012
572 0.6101412197676769 0.6250000009867535 0.360141220754439
573 0.620047072833531 0.625000000750988 0.1200470735848187
574 0.8733490242778331 0.6250000005640284 0.1233490248424457
575 0.8700470732558825 0.6250000012713717 0.3700470745272904
576 0.5952824405906465 0.8750000002896308 0.2202824408805432
577 0.720282440661255 0.8750000003763572 0.3452824410374039
578 0.5952824403797832 0.7500000006578418 0.3452824410376194
579 0.7400941467929361 0.8750000002191718 0.1150941470125027
580 0.6150941465114781 0.7500000005006707 0.1150941470125558
581 0.8650941468635595 0.8750000003059132 0.2400941471693691
582 0.871698048837161 0.75000000037603 0.1216980492135879
583 0.8650941467932609 0.7500000008475891 0.3650941476406505
584 0.615094146300604 0.625000000868872 0.2400941471696282
585 0.7400941465117741 0.6250000011290558 0.3650941476408624
586 0.7466980485556904 0.6250000006575174 0.1216980492136338
587 0.8716980487668555 0.625000000917692 0.2466980496848663
588 0.7301882937270989 0.8750000002977674 0.230188294024955
589 0.6051882934456341 0.7500000005792611 0.2301882940250892
590 0.7301882935865145 0.7500000007527065 0.355188294339132
591 0.7433960976743154 0.7500000004383455 0.1183960981130685
592 0.8683960978152175 0.7500000006118152 0.2433960984271229
593 0.7433960975337276 0.6250000008932776 0.2433960984272446
594 0.7367921956304162 0.7500000005955283 0.236792196226101
595 0.1249999998052123 0.5594351185898034 0.5655648816053508
596 0.1249999999785904 0.5198117061541115 0.8551882938684503
597 0.3749999999357713 0.5066039021084627 0.8683960979561325
598 0.3749999994156369 0.519811706716035 0.6051882938683975
599 0.1249999998919014 0.5396234123719574 0.7103765877369005
600 0.2499999999571809 0.5132078041312872 0.8617921959122914
601 0.3749999996757041 0.5132078044122489 0.736792195912265
602 0.2499999996104246 0.5396234126529191 0.5853765877368741
603 0.2499999997838027 0.5264156083921031 0.7235843918245828
604 0.1249999999417561 0.1299529265385327 0.870047073519718
605 0.1249999997929321 0.1398587796474549 0.6101412205591229
606 0.124999999801119 0.4195763389423539 0.5804236612566018
607 0.1249999999663225 0.3898587796155873 0.8601412204188907
608 0.3749999998250856 0.1266509755271186 0.8733490246473089
609 0.3749999993787428 0.1299529266790162 0.6200470739419188
610 0.3749999994033467 0.389858780037023 0.6101412205595648
611 0.3749999998988808 0.379952926581342 0.8700470735198567
612 0.1249999998673462 0.134905853092994 0.7400941470394244
613 0.1249999999540387 0.2599058530770569 0.8650941469692979
614 0.2499999998834222 0.1283019510328266 0.8716980490835161
615 0.1249999997970263 0.2797175592949044 0.595282440907865
616 0.2499999995858402 0.1349058531632399 0.6150941472505316
617 0.1249999998837262 0.4047175592789711 0.7202824408377552
618 0.2499999996022362 0.4047175594896937 0.5952824409080955
619 0.2499999999326061 0.3849058530984619 0.8650941469693743
620 0.3749999996019152 0.1283019511030671 0.7466980492946146
621 0.37499999986198 0.2533019510542288 0.8716980490835761
622 0.3749999993910442 0.2599058533580242 0.6150941472507461
623 0.3749999996511144 0.384905853309183 0.7400941470397054
624 0.1249999998755361 0.2698117061859809 0.7301882939385858
625 0.2499999997346325 0.1316039020980335 0.7433960981670286
626 0.2499999999080131 0.2566039020656411 0.8683960980264371
627 0.2499999995940382 0.2698117063264645 0.6051882940793069
628 0.2499999997674235 0.3948117062940794 0.7301882939387432
629 0.374999999626513 0.2566039022061252 0.7433960981671537
630 0.2499999997510271 0.2632078041960531 0.7367921960528756
631 0.4801882938478199 0.8750000000214095 0.8551882938680641
632 0.4405648814098103 0.8750000001947877 0.5655648816041918
633 0.4801882932838363 0.6250000005843631 0.6051882938680111
634 0.4933960978921811 0.6250000000642287 0.8683960979560037
635 0.4603765876288151 0.8750000001080986 0.7103765877361279
636 0.4603765873468232 0.7500000003895754 0.5853765877361015
637 0.4867921955880087 0.6250000003242959 0.7367921959120074
638 0.4867921958700004 0.7500000000428192 0.8617921959120338
639 0.4735843916084118 0.7500000002161973 0.7235843918240676
640 0.8700470734617908 0.8750000001230049 0.8700470735846731
641 0.6101412203857833 0.8750000000552807 0.860141220440269
642 0.5804236610573255 0.8750000002638925 0.5804236613207805
643 0.8601412203524155 0.8750000004021357 0.6101412207540049
644 0.8733490244729931 0.6250000003689976 0.8733490248424325
645 0.6200470734191179 0.6250000001658361 0.8700470735848274
646 0.6101412199628652 0.6250000007916835 0.6101412207544312
647 0.8700470733209404 0.6250000012063545 0.6200470745272761
648 0.7400941469237554 0.875000000089146 0.8650941470124757
649 0.8650941469070964 0.8750000002625618 0.7400941471693325
650 0.871698048967394 0.7500000002460039 0.8716980492135566
651 0.5952824407215566 0.8750000001595886 0.720282440880527
652 0.6150941469024617 0.7500000001105694 0.8650941470125567
653 0.7202824407048672 0.8750000003330195 0.595282441037402
654 0.5952824405101077 0.7500000005277998 0.5952824410376162
655 0.865094146836679 0.7500000008042441 0.6150941476406468
656 0.7466980489460445 0.6250000002674178 0.8716980492136315
657 0.8716980488969602 0.6250000007876694 0.746698049684846
658 0.6150941466909963 0.6250000004787686 0.7400941471696328
659 0.7400941466418935 0.6250000009990108 0.6150941476408465
660 0.7301882938143073 0.8750000002110788 0.7301882940249367
661 0.7433960979349091 0.7500000001782916 0.8683960981130632
662 0.8683960979020284 0.7500000005251146 0.7433960984270944
663 0.6051882937062781 0.7500000003191795 0.7301882940250828
664 0.7301882936733936 0.7500000006660278 0.6051882943391382
665 0.7433960977939623 0.6250000006332099 0.7433960984272334
666 0.7367921958041408 0.7500000004221508 0.7367921962260929
667 0.3155648813931041 0.8816039022549553 0.4339609795600992
668 0.3551882932347479 0.6448117067648659 0.4603765877363863
669 0.118396097744916 0.6844351186057369 0.4339609795611294
670 0.1051882937977014 0.8948117062019123 0.460376587735786
671 0.3353765873139261 0.7632078045099105 0.4471687836482428
672 0.2367921954898319 0.6646234126853015 0.4471687836487579
673 0.1117921957713087 0.7896234124038246 0.4471687836484577
674 0.2103765875954028 0.8882078042284338 0.4471687836479427
675 0.2235843915426173 0.7764156084568676 0.4471687836483502
676 0.3700470734191346 0.6299529265813321 0.8650941469341086
677 0.3601412203858684 0.8766509755270654 0.8584902448900302
678 0.3304236610573543 0.8799529266789846 0.5754707346700665
679 0.3601412199628772 0.6398587800370337 0.5952824408023107
680 0.1233490244730454 0.6398587796155023 0.858490244890289
681 0.1200470734619633 0.8799529265383723 0.8650941469339627
682 0.1101412203524432 0.8898587796473871 0.5952824408018353
683 0.1200470733209504 0.6695763389423135 0.5754707346708434
684 0.3650941469025019 0.75330195105419 0.8617921959120741
685 0.3650941466910025 0.6349058533091767 0.7301882938682039
686 0.2466980489460905 0.6349058530984218 0.8617921959122028
687 0.3452824407216123 0.8783019511030269 0.716980489780051
688 0.2400941469239199 0.8783019510327276 0.8617921959120055
689 0.3452824405101159 0.7599058533580121 0.5853765877361975
690 0.2202824407049027 0.8849058531631959 0.5853765877359606
691 0.2400941466419115 0.6547175594896784 0.5853765877365832
692 0.1216980489675039 0.7599058530769033 0.8617921959121272
693 0.121698048896996 0.6547175592788995 0.7169804897805577
694 0.1150941469072068 0.8849058530928858 0.7301882938679021
695 0.1150941468366924 0.7797175592948333 0.5853765877363315
696 0.3551882937063068 0.7566039022060981 0.7235843918241335
697 0.2433960979350069 0.7566039020655549 0.8617921959121103
698 0.2433960977939973 0.6448117062940423 0.7235843918243859
699 0.2301882938144087 0.8816039020979599 0.7235843918239793
700 0.230188293673409 0.7698117063264333 0.5853765877362779
701 0.1183960979020966 0.7698117061858658 0.723584391824224
702 0.2367921958042033 0.7632078041959884 0.7235843918241869
703 0.360141220189417 0.876650975722017 0.1084902448900484
704 0.3304236609918741 0.8799529267439823 0.3254707346700836
705 0.1101412203306375 0.8898587796689581 0.3452824408018561
706 0.1200470733965307 0.879952926603084 0.1150941469340083
707 0.3700470728335194 0.6299529271660304 0.1150941469341053
708 0.3601412197676748 0.6398587802319401 0.3452824408023012
709 0.1200470732558962 0.6695763390068826 0.3254707346708509
710 0.1233490242778563 0.6398587798091996 0.1084902448902956
711 0.3452824405906478 0.8783019512330029 0.2169804897800671
712 0.2400941467929722 0.8783019511625415 0.1117921959120265
713 0.3650941465114694 0.7533019514440266 0.1117921959120788
714 0.2202824406612572 0.8849058532064716 0.3353765877359707
715 0.3452824403797773 0.7599058534879728 0.3353765877361945
716 0.1150941468635882 0.8849058531360267 0.2301882938679338
717 0.1150941467932691 0.7797175593379322 0.3353765877363553
718 0.1216980488371975 0.7599058532061412 0.1117921959121539
719 0.3650941463005976 0.6349058536989861 0.2301882938682041
720 0.2466980485556843 0.6349058534876081 0.1117921959121979
721 0.2400941465117851 0.6547175596194192 0.3353765877365785
722 0.1216980487668725 0.6547175594080327 0.2169804897805718
723 0.2301882937271177 0.8816039021845105 0.2235843918239998
724 0.3551882934456259 0.7566039024660044 0.2235843918241377
725 0.2433960976743315 0.7566039023250746 0.1117921959121145
726 0.2301882935865223 0.7698117064129467 0.3353765877362759
727 0.1183960978152357 0.7698117062720422 0.2235843918242547
728 0.2433960975337323 0.6448117065535048 0.2235843918243884
729 0.2367921956304287 0.7632078043690131 0.223584391824196
"""

element = (np.loadtxt(io.StringIO(element)) - 1).astype(np.int32)
nodes = np.loadtxt(io.StringIO(nodes))

assert nodes.shape[1] == 4
assert np.array_equal(nodes[:, 0], np.arange(len(nodes))+1)

order = 4
nodes = 2*order*nodes
rnodes = np.round(nodes[:, 1:]).astype(np.int32)

offset = (-4, 0, -4)

s = [tuple(ni + oi for ni, oi in zip(node, offset))
        for node in rnodes[element]]

for t in s:
    print(str(t) + ",")

print(len(set(s)), len(s))
assert len(set(s)) == len(element)
